package com.feng.system.service;

import com.feng.mbg.domain.SysPermission;
import com.feng.mbg.domain.SysRole;
import com.github.pagehelper.PageInfo;

import java.util.List;
import java.util.Set;

/**
 * @author Feng
 * @since 2022/4/20 16:20
 */
public interface RoleService {

    List<SysPermission> getPermissionsByRoleId(Long roleId);

    PageInfo<SysRole> search(String keyWord, Integer pageNum, Integer pageSize);

    void addRole(String roleName, Integer level);

    void updateRoleById(Long roleId, String roleName, Integer level);

    void deleteByRoleIds(Set<Long> roleIds);

}
